<?php

namespace app\website\validate;

use think\Validate;

class AdminCardModular extends Validate
{
    /**
     * 定义验证规则
     * 格式：'字段名'	=>	['规则1','规则2'...]
     *
     * @var array
     */
    protected $rule = [
        'id'=> 'number',
        'name'  => 'require',
        'show_name'  => 'require|in:0,1',
        'show_top'=> 'require|in:0,1',
        'show_more'=>'require|in:0,1',
        'show'=>'require|in:0,1',
        'type'=>'require|in:1,2,3,4,5,6,7,8,9,10,11',
        'list_limit'=>'number',
        'remark'=>'max:100',
        'top'=>'require|number'
    ];
    
    /**
     * 定义错误信息
     * 格式：'字段名.规则名'	=>	'错误信息'
     *
     * @var array
     */	
    protected $message = [];
}
